package cn.whitecao.contentcenter.annotations;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class MyAnnotationAspect {
    @Around("@annotation(cn.whitecao.contentcenter.annotations.MyAnnotation)")
    public Object around(ProceedingJoinPoint proceedingJoinPoint)throws Throwable{
        System.out.println("进入 around");
        return proceedingJoinPoint.proceed();

    }

}
